Blueprint Help Send comments on this topic.
ClpDefaultSeg

Glossary Item Box

Description

This function returns the application's default memory segment number. It is mostly used when allocating/deallocating CLIP memory by Base functions.

Generation

The ClpDefaultSeg function will return the id of the default memory segment.

Uns ClpDefaultSeg();

Return

This function will return the value of the default segment >= 0.

Examples

Uns Cct1_AgentMthd::Create()
{
   Uns failed = FALSE;
   Uns dims[] = {M,N};
   Uns objFlags = CLP_MEM_DEFAULT | CLP_MEM_TEMP | CLP_ROOT | CLP_ENDPOINT;

   failed |= ! ClpMthd<Cct1_AgentMthdElem>::Create(
                  "Agent",
                  N*M,
                  1,
                  0,
                  objFlags,
                  DefaultSeg(),
                  0x10000,
                  2,
                  dims );
         
   return ! failed;
}