Git Product home page Git Product logo

libndgpp's Introduction

Introduction

A library containing C++ general primitives that I use. Some things that might be of use to others include but are not limited to:

The library also contains networking primitives that I use. Some things that might be of interest to others include but are not limited to:

General Primitives

ndgpp::bounded_integer

An integer type that allows for a compile time specifications of the allowed value range. This class faciliates proper construction from an arbitraty integer type and has safe signed / unsigned comparisions. It also facilitates integer construction from "string" types.

ndgpp::strto

A function overload set that facilitates converting strings to numeric types. These functions are convenient because they allow for compile time specification of the allowed value range as well as a requiring a template parameter to specify the target integer type. The target integer type template parameter facilitates string to integer conversions in template functions because the template function does not have to use a different function name for each target integer type.

ndgpp::safe_op

A namespace that contains several functions that perform safe comparisons on integer types that differ in signedness.

ndgpp::network_byte_order

A integral type that stores an integral value in network byte order.

Networking Primitives

ndgpp::net::basic_ipv4_address

This type represents an IPv4 address and allows for specifying the range of values the IP address can take on.

ndgpp::net::ipv4_address

This type represents an IPv4 address that can take on any IPv4 address value

ndgpp::net::multicast_ipv4_address

This type represents a multicast IPv4 address that can only take on address values that are in the IPv4 multicast address range.

ndgpp::net::port

This type represents a network port.

libndgpp's People

Contributors

goodfella avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.