calling a function from cmetainterval

In the python example on sequences and parallels in the manual it looks like you can add a function call to a sequence:

delay = Wait(2.5)
pandaWalkSeq = 
    Sequence(
        Parallel(pandaWalk, pandaWalkAnim), 
        delay,
        Parallel(pandaWalkBack, pandaWalkAnim), 
        Wait(1.0), 
        Func(myFunction, arg1)
    )

is there a way to do this in c++?

Basically, I want to
call a parallel,
when it finishes, call my function,
after it executes
call another interval

is this possible?
thanks

Inherit from cInterval, pass duration = 0.0 and open_ended = true, and override priv_instant() to call your function.

David

what do you mean with