code/WPILib/Resource.cpp
/**
 * Allocate storage for a new instance of Resource.
 * Allocate a bool array of values that will get initialized to indicate that no resources
 * have been allocated yet. The indicies of the resources are 0..size-1.
 */
Allocate storage for a new instance of Resource.
Allocate a bool array of values that will get initialized to indicate that no resources
have been allocated yet. The indicies of the resources are 0..size-1.
Allocate storage for a new instance of Resource . Allocate a bool array of values that will get initialized to indicate that no resources have been allocated yet . The indicies of the resources are 0 .. size - 1 .
Resource::Resource(UINT32 elements)
{
	m_size = elements;
	m_isAllocated = new bool[m_size];
	for (UINT32 i=0; i < m_size; i++)
		m_isAllocated[i] = false;
	m_nextResource = m_resourceList;
	m_resourceList = this;
}
Resource :: Resource ( UINT32 elements ) { m_size = elements ; m_isAllocated = new bool [ m_size ] ; for ( UINT32 i = 0 ; i < m_size ; i ++ ) m_isAllocated [ i ] = false ; m_nextResource = m_resourceList ; m_resourceList = this ; }
Allocate storage for a new instance of Resource.
Allocate storage for a new instance of Resource .