SNAP Library 2.0, Developer Reference  2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TSnap::IsDerivedFrom< TDerivClass, TBaseClass > Class Template Reference

Tests (at compile time) whether TDerivClass is derived from TBaseClass. More...

#include <gbase.h>

List of all members.

Classes

struct  No
struct  Yes

Public Types

enum  { Val = sizeof(Test(static_cast<TDerivClass*>(0))) == sizeof(Yes) ? 1 : 0 }

Static Private Member Functions

static Yes Test (TBaseClass *)
static No Test (...)

Detailed Description

template<class TDerivClass, class TBaseClass>
class TSnap::IsDerivedFrom< TDerivClass, TBaseClass >

Tests (at compile time) whether TDerivClass is derived from TBaseClass.

Definition at line 48 of file gbase.h.


Member Enumeration Documentation

template<class TDerivClass , class TBaseClass >
anonymous enum
Enumerator:
Val 

Definition at line 55 of file gbase.h.

{ Val = sizeof(Test(static_cast<TDerivClass*>(0))) == sizeof(Yes) ? 1 : 0 };

Member Function Documentation

template<class TDerivClass , class TBaseClass >
static Yes TSnap::IsDerivedFrom< TDerivClass, TBaseClass >::Test ( TBaseClass *  ) [static, private]
template<class TDerivClass , class TBaseClass >
static No TSnap::IsDerivedFrom< TDerivClass, TBaseClass >::Test (   ...) [static, private]

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