Csound and CsoundAC API  5.17
Public Member Functions | Private Attributes
CsoundUtilityList Class Reference

CsoundUtilityList(CSOUND *) CsoundUtilityList(Csound *) More...

#include <cs_glue.hpp>

Public Member Functions

void Clear ()
 Releases the memory used by the utility list.
int Count ()
 Returns the number of utilities, or -1 if there is no list.
 CsoundUtilityList (CSOUND *csound)
 CsoundUtilityList (Csound *csound)
const char * Name (int ndx)
 Returns the name of the utility at index 'ndx' (counting from zero), or NULL if the index is out of range.
 ~CsoundUtilityList ()

Private Attributes

int cnt
char ** lst

Detailed Description

CsoundUtilityList(CSOUND *) CsoundUtilityList(Csound *)

Creates an alphabetically sorted list of utilities registered for a Csound instance. Should be called after csoundPreCompile() or Csound::PreCompile().

Constructor & Destructor Documentation

CsoundUtilityList::CsoundUtilityList ( CSOUND csound)
CsoundUtilityList::CsoundUtilityList ( Csound *  csound)
CsoundUtilityList::~CsoundUtilityList ( )

Member Function Documentation

void CsoundUtilityList::Clear ( )

Releases the memory used by the utility list.

Should be called before the Csound instance is destroyed or reset.

int CsoundUtilityList::Count ( )

Returns the number of utilities, or -1 if there is no list.

const char* CsoundUtilityList::Name ( int  ndx)

Returns the name of the utility at index 'ndx' (counting from zero), or NULL if the index is out of range.

Field Documentation

int CsoundUtilityList::cnt
private
char** CsoundUtilityList::lst
private