Simple++
Powerfull and lightning fast C++ Library
Public Member Functions | Public Attributes | List of all members
MapObject< I, T > Class Template Reference

#include <Map.h>

Inheritance diagram for MapObject< I, T >:
BasicSimpleIO

Public Member Functions

 MapObject ()
 
 MapObject (const I &index, const T &value)
 
 ~MapObject ()
 
const I & getIndex () const
 
void setIndex (const I &index)
 
const T & getValue () const
 
void setValue (const T &value)
 
bool operator== (const MapObject &o) const
 
bool operator> (const MapObject &o) const
 
bool operator< (const MapObject &o) const
 
bool operator>= (const MapObject &o) const
 
bool operator<= (const MapObject &o) const
 
bool read (std::fstream *fileStream)
 read from a file stream More...
 
bool write (std::fstream *fileStream) const
 write this object as binary into a file stream More...
 
- Public Member Functions inherited from BasicSimpleIO
bool read (std::fstream *fileStream)
 read from a file stream More...
 
bool write (std::fstream *fileStream) const
 write this object as binary into a file stream More...
 

Public Attributes

index
 
value
 

Constructor & Destructor Documentation

template<typename I , typename T >
MapObject< I, T >::MapObject ( )
template<typename I, typename T>
MapObject< I, T >::MapObject ( const I &  index,
const T &  value 
)
template<typename I , typename T >
MapObject< I, T >::~MapObject ( )

Member Function Documentation

template<typename I , typename T >
const I & MapObject< I, T >::getIndex ( ) const
template<typename I , typename T >
const T & MapObject< I, T >::getValue ( ) const
template<typename I , typename T >
bool MapObject< I, T >::operator< ( const MapObject< I, T > &  o) const
template<typename I , typename T >
bool MapObject< I, T >::operator<= ( const MapObject< I, T > &  o) const
template<typename I , typename T >
bool MapObject< I, T >::operator== ( const MapObject< I, T > &  o) const
template<typename I , typename T >
bool MapObject< I, T >::operator> ( const MapObject< I, T > &  o) const
template<typename I , typename T >
bool MapObject< I, T >::operator>= ( const MapObject< I, T > &  o) const
template<typename I , typename T >
bool MapObject< I, T >::read ( std::fstream *  fileStream)

read from a file stream

Parameters
fileStreamstream used to read load this object
Returns
boolean to know if the operation is a success of not.
template<typename I, typename T >
void MapObject< I, T >::setIndex ( const I &  index)
template<typename I , typename T>
void MapObject< I, T >::setValue ( const T &  value)
template<typename I , typename T >
bool MapObject< I, T >::write ( std::fstream *  fileStream) const

write this object as binary into a file stream

Parameters
fileStreamstream used to write this object
Returns
boolean to know if the operation is a success of not.

Member Data Documentation

template<typename I, typename T>
I MapObject< I, T >::index
template<typename I, typename T>
T MapObject< I, T >::value

The documentation for this class was generated from the following files: