SNAP Library 4.0, User Reference  2017-07-27 13:18:06
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 211 of file table.h.

Constructor & Destructor Documentation

TPrimitive::TPrimitive ( )
inline

Definition at line 219 of file table.h.

219 : IntVal(-1), FltVal(-1), StrVal(""), AttrType(atInt) {}
Definition: gbase.h:23
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
TAttrType AttrType
Definition: table.h:216
TPrimitive::TPrimitive ( const TInt Val)
inline

Definition at line 220 of file table.h.

220 : IntVal(Val), FltVal(-1), StrVal(""), AttrType(atInt) {}
Definition: gbase.h:23
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
TAttrType AttrType
Definition: table.h:216
TPrimitive::TPrimitive ( const TFlt Val)
inline

Definition at line 221 of file table.h.

221 : IntVal(-1), FltVal(Val), StrVal(""), AttrType(atFlt) {}
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
Definition: gbase.h:23
TAttrType AttrType
Definition: table.h:216
TPrimitive::TPrimitive ( const TStr Val)
inline

Definition at line 222 of file table.h.

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

Definition at line 223 of file table.h.

223  : IntVal(Prim.IntVal), FltVal(Prim.FltVal),
224  StrVal(Prim.StrVal.CStr()), AttrType(Prim.AttrType) {}
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
char * CStr()
Definition: dt.h:476
TAttrType AttrType
Definition: table.h:216

Member Function Documentation

TFlt TPrimitive::GetFlt ( ) const
inline

Definition at line 227 of file table.h.

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

Definition at line 226 of file table.h.

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

Definition at line 228 of file table.h.

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

Definition at line 229 of file table.h.

229 { return AttrType; }
TAttrType AttrType
Definition: table.h:216

Member Data Documentation

TAttrType TPrimitive::AttrType
private

Definition at line 216 of file table.h.

TFlt TPrimitive::FltVal
private

Definition at line 214 of file table.h.

TInt TPrimitive::IntVal
private

Definition at line 213 of file table.h.

TStr TPrimitive::StrVal
private

Definition at line 215 of file table.h.


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