Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Basic_Types.hpp
- //
- // Required by Random.hpp
- #ifndef __TOOLS_BASIC_TYPES__
- #define __TOOLS_BASIC_TYPES__
- // ============================================================================ Includes
- // Includes
- // ---------------------------------------------------------------------------- STL
- #include <vector>
- #include <stack>
- #include <set>
- // ============================================================================ Typedefs
- // Typedefs
- // ---------------------------------------------------------------------------- Numeric Vectors
- typedef std::vector< int > Int_Vector;
- typedef std::vector< int8_t > Int8_Vector;
- typedef std::vector< int16_t > Int16_Vector;
- typedef std::vector< int32_t > Int32_Vector;
- typedef std::vector< int64_t > Int64_Vector;
- typedef std::vector< unsigned > Uint_Vector;
- typedef std::vector< uint8_t > Uint8_Vector;
- typedef std::vector< uint16_t > Uint16_Vector;
- typedef std::vector< uint32_t > Uint32_Vector;
- typedef std::vector< uint64_t > Uint64_Vector;
- typedef std::vector< float > Float_Vector;
- typedef std::vector< double > Double_Vector;
- // ---------------------------------------------------------------------------- Numeric Stacks
- typedef std::stack< int > Int_Stack;
- typedef std::stack< int8_t > Int8_Stack;
- typedef std::stack< int16_t > Int16_Stack;
- typedef std::stack< int32_t > Int32_Stack;
- typedef std::stack< int64_t > Int64_Stack;
- typedef std::stack< unsigned > Uint_Stack;
- typedef std::stack< uint8_t > Uint8_Stack;
- typedef std::stack< uint16_t > Uint16_Stack;
- typedef std::stack< uint32_t > Uint32_Stack;
- typedef std::stack< uint64_t > Uint64_Stack;
- typedef std::stack< float > Float_Stack;
- typedef std::stack< double > Double_Stack;
- // ---------------------------------------------------------------------------- Numeric Sets
- typedef std::set< int > Int_Set;
- typedef std::set< int8_t > Int8_Set;
- typedef std::set< int16_t > Int16_Set;
- typedef std::set< int32_t > Int32_Set;
- typedef std::set< int64_t > Int64_Set;
- typedef std::set< unsigned > Uint_Set;
- typedef std::set< uint8_t > Uint8_Set;
- typedef std::set< uint16_t > Uint16_Set;
- typedef std::set< uint32_t > Uint32_Set;
- typedef std::set< uint64_t > Uint64_Set;
- typedef std::set< float > Float_Set;
- typedef std::set< double > Double_Set;
- // ---------------------------------------------------------------------------- Numeric Pairs
- typedef std::pair< int, int > Int_Pair;
- typedef std::pair< int8_t, int8_t > Int8_Pair;
- typedef std::pair< int16_t, int16_t > Int16_Pair;
- typedef std::pair< int32_t, int32_t > Int32_Pair;
- typedef std::pair< int64_t, int64_t > Int64_Pair;
- typedef std::pair< unsigned, unsigned > Uint_Pair;
- typedef std::pair< uint8_t, uint8_t > Uint8_Pair;
- typedef std::pair< uint16_t, uint16_t > Uint16_Pair;
- typedef std::pair< uint32_t, uint32_t > Uint32_Pair;
- typedef std::pair< uint64_t, uint64_t > Uint64_Pair;
- typedef std::pair< float, float > Float_Pair;
- typedef std::pair< double, double > Double_Pair;
- // ---------------------------------------------------------------------------- Pair Vectors
- typedef std::vector< Int_Pair > Int_Pair_Vector;
- typedef std::vector< Int8_Pair > Int8_Pair_Vector;
- typedef std::vector< Int16_Pair > Int16_Pair_Vector;
- typedef std::vector< Int32_Pair > Int32_Pair_Vector;
- typedef std::vector< Int64_Pair > Int64_Pair_Vector;
- typedef std::vector< Uint_Pair > Uint_Pair_Vector;
- typedef std::vector< Uint8_Pair > Uint8_Pair_Vector;
- typedef std::vector< Uint16_Pair > Uint16_Pair_Vector;
- typedef std::vector< Uint32_Pair > Uint32_Pair_Vector;
- typedef std::vector< Uint64_Pair > Uint64_Pair_Vector;
- typedef std::vector< Float_Pair > Float_Pair_Vector;
- typedef std::vector< Double_Pair > Double_Pair_Vector;
- // ---------------------------------------------------------------------------- Pair Stacks
- typedef std::stack< Int_Pair > Int_Pair_Stack;
- typedef std::stack< Int8_Pair > Int8_Pair_Stack;
- typedef std::stack< Int16_Pair > Int16_Pair_Stack;
- typedef std::stack< Int32_Pair > Int32_Pair_Stack;
- typedef std::stack< Int64_Pair > Int64_Pair_Stack;
- typedef std::stack< Uint_Pair > Uint_Pair_Stack;
- typedef std::stack< Uint8_Pair > Uint8_Pair_Stack;
- typedef std::stack< Uint16_Pair > Uint16_Pair_Stack;
- typedef std::stack< Uint32_Pair > Uint32_Pair_Stack;
- typedef std::stack< Uint64_Pair > Uint64_Pair_Stack;
- typedef std::stack< Float_Pair > Float_Pair_Stack;
- typedef std::stack< Double_Pair > Double_Pair_Stack;
- // ---------------------------------------------------------------------------- Pair Sets
- typedef std::set< Int_Pair > Int_Pair_Set;
- typedef std::set< Int8_Pair > Int8_Pair_Set;
- typedef std::set< Int16_Pair > Int16_Pair_Set;
- typedef std::set< Int32_Pair > Int32_Pair_Set;
- typedef std::set< Int64_Pair > Int64_Pair_Set;
- typedef std::set< Uint_Pair > Uint_Pair_Set;
- typedef std::set< Uint8_Pair > Uint8_Pair_Set;
- typedef std::set< Uint16_Pair > Uint16_Pair_Set;
- typedef std::set< Uint32_Pair > Uint32_Pair_Set;
- typedef std::set< Uint64_Pair > Uint64_Pair_Set;
- typedef std::set< Float_Pair > Float_Pair_Set;
- typedef std::set< Double_Pair > Double_Pair_Set;
- #endif
Add Comment
Please, Sign In to add comment