On 13/05/2015 at 17:39, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
While I have looked at the examples and documentation, BaseArray/PointerArray are giving me issues when one is used as a class member and it should be able to be passed to another class for iteration. The compiler says that it is inaccessible (even if in public: space). Could someone provide example code that shows how to accomplish this?
For instance:
class MyClass
{
PointerArray<MyClass1> m_a_myclass1;
....
PointerArray<MyClass1> GetMyClass1Array(); // or the best method to achieve this
};
class MyClass2
{
void DoSomething(MyClass* mc)
{
PointerArray<MyClass1> mc1 = mc->GetMyClass1Array();
....
}
};
I've done similar in Java and with C++ STL but your system isn't being transparent enough to work as illustrated. Appreciate any help as I will need the power of this system soon enough.
Thanks,