fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::TypedRealm< T > Class Template Reference

f8c typed realm. More...

#include <f8c.hpp>

Inheritance diagram for FIX8::TypedRealm< T >:
FIX8::RealmObject

Public Member Functions

 TypedRealm (const T &from, bool isRange)
 
virtual void print (std::ostream &os)
 
bool comp (const RealmObject *p1, const RealmObject *p2)
 
- Public Member Functions inherited from FIX8::RealmObject
 RealmObject (bool isRange)
 
virtual ~RealmObject ()
 
bool is_range () const
 

Protected Attributes

_obj
 

Additional Inherited Members

- Static Public Member Functions inherited from FIX8::RealmObject
static RealmObjectcreate (const std::string &from, FieldTrait::FieldType ftype, bool isRange=false)
 

Detailed Description

template<typename T>
class FIX8::TypedRealm< T >

f8c typed realm.

Template Parameters
Tunderlying realm type

Definition at line 89 of file f8c.hpp.

Constructor & Destructor Documentation

template<typename T>
FIX8::TypedRealm< T >::TypedRealm ( const T &  from,
bool  isRange 
)
inline

Definition at line 95 of file f8c.hpp.

95 : RealmObject(isRange), _obj(from) {}
RealmObject(bool isRange)
Definition: f8c.hpp:73

Member Function Documentation

template<typename T>
bool FIX8::TypedRealm< T >::comp ( const RealmObject p1,
const RealmObject p2 
)
inlinevirtual

Implements FIX8::RealmObject.

Definition at line 97 of file f8c.hpp.

98  { return (static_cast<const TypedRealm<T>*>(p1))->_obj < static_cast<const TypedRealm<T>*>(p2)->_obj; }
template<typename T>
virtual void FIX8::TypedRealm< T >::print ( std::ostream &  os)
inlinevirtual

Implements FIX8::RealmObject.

Reimplemented in FIX8::CharRealm, and FIX8::StringRealm.

Definition at line 96 of file f8c.hpp.

96 { os << _obj; }

Member Data Documentation

template<typename T>
T FIX8::TypedRealm< T >::_obj
protected

Definition at line 92 of file f8c.hpp.

Referenced by FIX8::TypedRealm< char >::print().


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