cgma
CompositeCoSurf Class Reference

#include <CompositeCoSurf.hpp>

List of all members.

Public Member Functions

 CompositeCoSurf (CubitSense sense=CUBIT_FORWARD)
 ~CompositeCoSurf ()
CompositeSurfaceget_surface () const
CompositeShellget_shell () const
CubitSense sense () const
void sense (CubitSense set)
CompositeCoSurfnext_in_surface () const
CompositeCoSurfnext_in_shell () const
void print_debug_info (const char *line_prefix=0, bool brief=false)

Private Attributes

CubitSense mySense
CompositeSurfacemySurface
CompositeCoSurfsurfaceNext
CompositeShellmyShell
CompositeCoSurfshellNext

Friends

class CompositeSurface
class CompositeShell

Detailed Description

Definition at line 21 of file CompositeCoSurf.hpp.


Constructor & Destructor Documentation

Definition at line 54 of file CompositeCoSurf.hpp.

Definition at line 6 of file CompositeCoSurf.cpp.

{
  if( myShell )
  {
    myShell->remove( this );
    myShell = 0;
  }
  if( mySurface )
  {
    mySurface->remove( this );
    mySurface = 0;
  }
  
  mySense = CUBIT_UNKNOWN;
  assert( !shellNext && !surfaceNext );
}

Member Function Documentation

Definition at line 65 of file CompositeCoSurf.hpp.

  { return myShell; }

Definition at line 62 of file CompositeCoSurf.hpp.

  { return mySurface; }

Definition at line 71 of file CompositeCoSurf.hpp.

  { return shellNext; }

Definition at line 68 of file CompositeCoSurf.hpp.

  { return surfaceNext; }
void CompositeCoSurf::print_debug_info ( const char *  line_prefix = 0,
bool  brief = false 
)

Definition at line 32 of file CompositeCoSurf.cpp.

{
  if( prefix == 0 ) prefix = "";
  
  const char* sense = mySense == CUBIT_FORWARD ? "Forward" :
                      mySense == CUBIT_REVERSED ? "Reverse" : "UNKNOWN";
                      
  PRINT_INFO("%sCompCoSurf %p %s ", prefix, (void*)this, sense );
   
  if( !mySurface )
    PRINT_INFO("NULL SURFACE\n");
  else if( brief )
    PRINT_INFO("surface %p\n", (void*)mySurface );
  else
    { PRINT_INFO("\n  ");  mySurface->print_debug_info(prefix, true); }
}
CubitSense CompositeCoSurf::sense ( ) const [inline]

Definition at line 74 of file CompositeCoSurf.hpp.

  { return mySense; }
void CompositeCoSurf::sense ( CubitSense  set) [inline]

Definition at line 77 of file CompositeCoSurf.hpp.

  { mySense = set; }

Friends And Related Function Documentation

friend class CompositeShell [friend]

Definition at line 25 of file CompositeCoSurf.hpp.

friend class CompositeSurface [friend]

Definition at line 24 of file CompositeCoSurf.hpp.


Member Data Documentation

Definition at line 45 of file CompositeCoSurf.hpp.

Definition at line 50 of file CompositeCoSurf.hpp.

Definition at line 47 of file CompositeCoSurf.hpp.

Definition at line 51 of file CompositeCoSurf.hpp.

Definition at line 48 of file CompositeCoSurf.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines