SNAP Library 3.0, User Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TPrimitive Class Reference

Primitive class: Wrapper around primitive data types. More...

#include <table.h>

Public Member Functions

 TPrimitive ()
 
 TPrimitive (const TInt &Val)
 
 TPrimitive (const TFlt &Val)
 
 TPrimitive (const TStr &Val)
 
 TPrimitive (const TPrimitive &Prim)
 
TInt GetInt () const
 
TFlt GetFlt () const
 
TStr GetStr () const
 
TAttrType GetType () const
 

Private Attributes

TInt IntVal
 
TFlt FltVal
 
TStr StrVal
 
TAttrType AttrType
 

Detailed Description

Primitive class: Wrapper around primitive data types.

Definition at line 220 of file table.h.

Constructor & Destructor Documentation

TPrimitive::TPrimitive ( )
inline

Definition at line 228 of file table.h.

228 : IntVal(-1), FltVal(-1), StrVal(""), AttrType(atInt) {}
Definition: gbase.h:23
TStr StrVal
Definition: table.h:224
TInt IntVal
Definition: table.h:222
TFlt FltVal
Definition: table.h:223
TAttrType AttrType
Definition: table.h:225
TPrimitive::TPrimitive ( const TInt Val)
inline

Definition at line 229 of file table.h.

229 : IntVal(Val), FltVal(-1), StrVal(""), AttrType(atInt) {}
Definition: gbase.h:23
TStr StrVal
Definition: table.h:224
TInt IntVal
Definition: table.h:222
TFlt FltVal
Definition: table.h:223
TAttrType AttrType
Definition: table.h:225
TPrimitive::TPrimitive ( const TFlt Val)
inline

Definition at line 230 of file table.h.

230 : IntVal(-1), FltVal(Val), StrVal(""), AttrType(atFlt) {}
TStr StrVal
Definition: table.h:224
TInt IntVal
Definition: table.h:222
TFlt FltVal
Definition: table.h:223
Definition: gbase.h:23
TAttrType AttrType
Definition: table.h:225
TPrimitive::TPrimitive ( const TStr Val)
inline

Definition at line 231 of file table.h.

231 : IntVal(-1), FltVal(-1), StrVal(Val.CStr()), AttrType(atStr) {}
TStr StrVal
Definition: table.h:224
TInt IntVal
Definition: table.h:222
TFlt FltVal
Definition: table.h:223
Definition: gbase.h:23
char * CStr()
Definition: dt.h:476
TAttrType AttrType
Definition: table.h:225
TPrimitive::TPrimitive ( const TPrimitive Prim)
inline

Definition at line 232 of file table.h.

232  : IntVal(Prim.IntVal), FltVal(Prim.FltVal),
233  StrVal(Prim.StrVal.CStr()), AttrType(Prim.AttrType) {}
TStr StrVal
Definition: table.h:224
TInt IntVal
Definition: table.h:222
TFlt FltVal
Definition: table.h:223
char * CStr()
Definition: dt.h:476
TAttrType AttrType
Definition: table.h:225

Member Function Documentation

TFlt TPrimitive::GetFlt ( ) const
inline

Definition at line 236 of file table.h.

236 { return FltVal; }
TFlt FltVal
Definition: table.h:223
TInt TPrimitive::GetInt ( ) const
inline

Definition at line 235 of file table.h.

235 { return IntVal; }
TInt IntVal
Definition: table.h:222
TStr TPrimitive::GetStr ( ) const
inline

Definition at line 237 of file table.h.

237 { return StrVal; }
TStr StrVal
Definition: table.h:224
TAttrType TPrimitive::GetType ( ) const
inline

Definition at line 238 of file table.h.

238 { return AttrType; }
TAttrType AttrType
Definition: table.h:225

Member Data Documentation

TAttrType TPrimitive::AttrType
private

Definition at line 225 of file table.h.

TFlt TPrimitive::FltVal
private

Definition at line 223 of file table.h.

TInt TPrimitive::IntVal
private

Definition at line 222 of file table.h.

TStr TPrimitive::StrVal
private

Definition at line 224 of file table.h.


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