SST/macro
Public Types | Public Member Functions | Protected Attributes | List of all members
sstmac::tutorial::diamond Class Reference

#include <diamond.h>

Inheritance diagram for sstmac::tutorial::diamond:
Inheritance graph
Collaboration diagram for sstmac::tutorial::diamond:
Collaboration graph

Public Types

typedef sprockit::refcount_ptr< diamondptr
 Public typedefs. More...
 
typedef sprockit::refcount_ptr< const diamondconst_ptr
 
- Public Types inherited from sstmac::tutorial::gem
typedef sprockit::refcount_ptr< gemptr
 Public typedefs. More...
 
typedef sprockit::refcount_ptr< const gemconst_ptr
 
- Public Types inherited from sstmac::tutorial::mineral
typedef sprockit::refcount_ptr< mineralptr
 Public typedefs. More...
 
typedef sprockit::refcount_ptr< const mineralconst_ptr
 

Public Member Functions

 diamond (num_carats)
 Public functions and constructors. More...
 
std::string to_string () const
 Fill out ptr_type virtual interface. More...
 
int value () const
 Public functions and constructors. More...
 
std::string structure () const
 Public functions and constructors. More...
 
- Public Member Functions inherited from sstmac::tutorial::gem
virtual ~gem ()
 
- Public Member Functions inherited from sprockit::ptr_type
 ptr_type ()
 
int nreferences () const
 
virtual ~ptr_type ()
 
- Public Member Functions inherited from sstmac::tutorial::mineral
virtual ~mineral ()
 

Protected Attributes

int num_carats_
 Member variables. More...
 

Additional Inherited Members

- Protected Member Functions inherited from sprockit::ptr_type
void incref ()
 
int decref ()
 

Detailed Description

Definition at line 7 of file diamond.h.

Member Typedef Documentation

Definition at line 14 of file diamond.h.

Public typedefs.

Definition at line 13 of file diamond.h.

Constructor & Destructor Documentation

sstmac::tutorial::diamond::diamond ( num_carats  )
inline

Public functions and constructors.

Definition at line 18 of file diamond.h.

Member Function Documentation

std::string sstmac::tutorial::diamond::structure ( ) const
inlinevirtual

Public functions and constructors.

Implements sstmac::tutorial::mineral.

Definition at line 34 of file diamond.h.

std::string sstmac::tutorial::diamond::to_string ( ) const
inline

Fill out ptr_type virtual interface.

Definition at line 24 of file diamond.h.

int sstmac::tutorial::diamond::value ( ) const
inlinevirtual

Public functions and constructors.

Implements sstmac::tutorial::gem.

Definition at line 29 of file diamond.h.

References num_carats_.

Member Data Documentation

int sstmac::tutorial::diamond::num_carats_
protected

Member variables.

Definition at line 40 of file diamond.h.

Referenced by value().


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