本文整理汇总了C++中OutputList类的典型用法代码示例。如果您正苦于以下问题:C++ OutputList类的具体用法?C++ OutputList怎么用?C++ OutputList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OutputList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: parseDefineConstruct
void parseDefineConstruct(QCString & largs, MemberDef* mdef ,OutputList& ol)
{
// QCString largs=mdef->getDefinition();
int kr=largs.contains("\\?");
ol.startBold();
VerilogDocGen::writeLink(mdef,ol);
ol.docify(" ");
ol.insertMemberAlign();
ol.startTextBlock();
if(kr>0)
{
largs=mdef->definition();
largs.stripPrefix("feature");
while(largs.stripPrefix(" "));
largs.stripPrefix(mdef->name().data());
QStringList ql=QStringList::split("\\?",largs,false);
for(uint i=0;i<ql.count();i++)
{
// ol.startParagraph();
QCString val=ql[i].data();
//ol.codify(val.data());
VhdlDocGen::formatString(val,ol,mdef);
// ol.lineBreak();
// ol.endParagraph();
}
}
else
VhdlDocGen::formatString(largs,ol,mdef);
ol.endTextBlock(true);
ol.endBold();
}
示例2: writePageDocumentation
void GroupDef::writePageDocumentation(OutputList &ol)
{
PageDef *pd=0;
PageSDict::Iterator pdi(*pageDict);
for (pdi.toFirst();(pd=pdi.current());++pdi)
{
if (!pd->isReference())
{
QCString pageName = pd->getOutputFileBase();
if (!Config_getString("GENERATE_TAGFILE").isEmpty())
{
Doxygen::tagFile << " <page>" << convertToXML(pageName) << "</page>" << endl;
}
SectionInfo *si=0;
if (!pd->title().isEmpty() && !pd->name().isEmpty() &&
(si=Doxygen::sectionDict->find(pd->name()))!=0)
{
ol.startSection(si->label,si->title,SectionInfo::Subsection);
ol.docify(si->title);
ol.endSection(si->label,SectionInfo::Subsection);
}
ol.startTextBlock();
ol.parseDoc(pd->docFile(),pd->docLine(),pd,0,pd->documentation()+pd->inbodyDocumentation(),TRUE,FALSE,0,TRUE,FALSE);
ol.endTextBlock();
}
}
}
示例3: getPreferredStepSize
SpeechMusicSegmenter::OutputList
SpeechMusicSegmenter::getOutputDescriptors() const
{
OutputList list;
OutputDescriptor segmentation;
segmentation.identifier = "segmentation";
segmentation.name = "Segmentation";
segmentation.description = "Segmentation";
segmentation.unit = "segment-type";
segmentation.hasFixedBinCount = true;
segmentation.binCount = 1;
segmentation.hasKnownExtents = true;
segmentation.minValue = 0;
segmentation.maxValue = 2;
segmentation.isQuantized = true;
segmentation.quantizeStep = 1;
segmentation.sampleType = OutputDescriptor::VariableSampleRate;
segmentation.sampleRate = m_inputSampleRate / getPreferredStepSize();
OutputDescriptor skewness;
skewness.identifier = "skewness";
skewness.name = "Detection function";
skewness.description = "Detection function";
skewness.unit = "segment-type";
skewness.hasFixedBinCount = true;
skewness.binCount = 1;
skewness.hasKnownExtents = true;
skewness.minValue = 0;
skewness.maxValue = 2;
skewness.isQuantized = true;
skewness.quantizeStep = 1;
skewness.sampleType = OutputDescriptor::VariableSampleRate;
skewness.sampleRate = m_inputSampleRate / getPreferredStepSize();
list.push_back(segmentation);
list.push_back(skewness);
return list;
}
示例4: writeAuthorSection
void GroupDef::writeAuthorSection(OutputList &ol)
{
// write Author section (Man only)
ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Man);
ol.startGroupHeader();
ol.parseText(theTranslator->trAuthor(TRUE,TRUE));
ol.endGroupHeader();
ol.parseText(theTranslator->trGeneratedAutomatically(Config_getString("PROJECT_NAME")));
ol.popGeneratorState();
}
示例5: writePlainVerilogDeclarations
void VerilogDocGen::writePlainVerilogDeclarations(MemberDef* mdef,MemberList* mlist,OutputList &ol,
ClassDef *cd,NamespaceDef *nd,FileDef *fd,GroupDef *gd,int specifier){
ol.pushGeneratorState();
bool first=TRUE;
MemberDef *md;
MemberListIterator mli(*mlist);
for ( ; (md=mli.current()); ++mli )
{
int mems=md->getMemberSpecifiers();
if (md->isBriefSectionVisible() && (mems==specifier))
{
if (first) ol.startMemberList(),first=FALSE;
VerilogDocGen::writeVerilogDeclarations(md,ol,cd,nd,fd,gd,false);
}//if
}//for
if (!first) ol.endMemberList();
}//plainDeclaration
示例6:
Pitch::OutputList
Pitch::getOutputDescriptors() const
{
OutputList list;
OutputDescriptor d;
d.identifier = "frequency";
d.name = "Fundamental Frequency";
d.description = "List of detected frequencies";
d.unit = "Hz";
d.hasFixedBinCount = true;
d.binCount = 1;
d.hasKnownExtents = false;
d.isQuantized = false;
d.sampleType = OutputDescriptor::VariableSampleRate;
d.sampleRate = 0;
if (m_stepSize != 0) {
d.sampleRate = m_inputSampleRate / m_stepSize;
}
list.push_back(d);
return list;
}
示例7:
MyPlugin::OutputList
MyPlugin::getOutputDescriptors() const
{
OutputList list;
// See OutputDescriptor documentation for the possibilities here.
// Every plugin must have at least one output.
OutputDescriptor d;
d.identifier = "output";
d.name = "My Output";
d.description = "";
d.unit = "";
d.hasFixedBinCount = true;
d.binCount = 1;
d.hasKnownExtents = false;
d.isQuantized = false;
d.sampleType = OutputDescriptor::OneSamplePerStep;
d.hasDuration = false;
list.push_back(d);
return list;
}
示例8: sprintf
CQVamp::OutputList
CQVamp::getOutputDescriptors() const
{
OutputList list;
OutputDescriptor d;
d.identifier = "constantq";
d.name = "Constant-Q Spectrogram";
d.unit = "";
d.description = "Output of constant-Q transform, as a single vector per process block";
d.hasFixedBinCount = true;
d.binCount = (m_cq ? m_cq->getTotalBins() : (9 * 24));
if (m_cq) {
char name[20];
for (int i = 0; i < (int)d.binCount; ++i) {
float freq = m_cq->getBinFrequency(d.binCount - i - 1);
sprintf(name, "%.1f Hz", freq);
int note = Pitch::getPitchForFrequency(freq, 0, m_tuningFrequency);
float nearestFreq =
Pitch::getFrequencyForPitch(note, 0, m_tuningFrequency);
if (fabs(freq - nearestFreq) < 0.01) {
d.binNames.push_back(name + std::string(" ") + noteName(note));
} else {
d.binNames.push_back(name);
}
}
}
d.hasKnownExtents = false;
d.isQuantized = false;
d.sampleType = OutputDescriptor::FixedSampleRate;
d.sampleRate = m_inputSampleRate / (m_cq ? m_cq->getColumnHop() : 256);
list.push_back(d);
return list;
}
示例9: getPreferredStepSize
SegmenterPlugin::OutputList
SegmenterPlugin::getOutputDescriptors() const
{
OutputList list;
OutputDescriptor segmentation;
segmentation.identifier = "segmentation";
segmentation.name = "Segmentation";
segmentation.description = "Segmentation";
segmentation.unit = "segment-type";
segmentation.hasFixedBinCount = true;
segmentation.binCount = 1;
segmentation.hasKnownExtents = true;
segmentation.minValue = 1;
segmentation.maxValue = nSegmentTypes;
segmentation.isQuantized = true;
segmentation.quantizeStep = 1;
segmentation.sampleType = OutputDescriptor::VariableSampleRate;
segmentation.sampleRate = m_inputSampleRate / getPreferredStepSize();
list.push_back(segmentation);
return list;
}
示例10:
TemporalCentroid::OutputList
TemporalCentroid::getOutputDescriptors() const
{
OutputList list;
// See OutputDescriptor documentation for the possibilities here.
// Every plugin must have at least one output.
OutputDescriptor d;
d.identifier = "temporalcentroid";
d.name = "Temporal Centroid";
d.description = "";
d.unit = "";
d.hasFixedBinCount = true;
d.binCount = 0;
d.hasKnownExtents = false;
d.isQuantized = false;
d.sampleType = OutputDescriptor::VariableSampleRate;
d.sampleRate = 0;
d.hasDuration = false;
list.push_back(d);
return list;
}
示例11: generateDirDocs
void generateDirDocs(OutputList &ol)
{
DirDef *dir;
DirSDict::Iterator sdi(*Doxygen::directories);
for (sdi.toFirst();(dir=sdi.current());++sdi)
{
ol.pushGeneratorState();
if (!dir->hasDocumentation())
{
ol.disableAllBut(OutputGenerator::Html);
}
dir->writeDocumentation(ol);
ol.popGeneratorState();
}
if (Config_getBool(DIRECTORY_GRAPH))
{
SDict<DirRelation>::Iterator rdi(Doxygen::dirRelations);
DirRelation *dr;
for (rdi.toFirst();(dr=rdi.current());++rdi)
{
dr->writeDocumentation(ol);
}
}
}
示例12:
MzSpectrogramFFTW::OutputList
MzSpectrogramFFTW::getOutputDescriptors(void) const {
OutputList list;
OutputDescriptor od;
// First and only output channel:
od.identifier = "magnitude";
od.name = "Magnitude Spectrum";
od.unit = "decibels";
od.hasFixedBinCount = true;
od.binCount = mz_maxbin - mz_minbin + 1;
od.hasKnownExtents = false;
// od.minValue = 0.0;
// od.maxValue = 0.0;
od.isQuantized = false;
// od.quantizeStep = 1.0;
od.sampleType = OutputDescriptor::OneSamplePerStep;
// od.sampleRate = 0.0;
list.push_back(od);
return list;
}
示例13:
SpectralCentroid::OutputList
SpectralCentroid::getOutputDescriptors() const
{
OutputList list;
OutputDescriptor d;
d.identifier = "logcentroid";
d.name = "Log Frequency Centroid";
d.description = "Centroid of the log weighted frequency spectrum";
d.unit = "Hz";
d.hasFixedBinCount = true;
d.binCount = 1;
d.hasKnownExtents = false;
d.isQuantized = false;
d.sampleType = OutputDescriptor::OneSamplePerStep;
list.push_back(d);
d.identifier = "linearcentroid";
d.name = "Linear Frequency Centroid";
d.description = "Centroid of the linear frequency spectrum";
list.push_back(d);
return list;
}
示例14: writeDocumentation
void MemberList::writeDocumentation(OutputList &ol,
const char *scopeName, Definition *container,
const char *title,bool showEnumValues,bool showInline)
{
//printf("MemberList::writeDocumentation()\n");
countDocMembers(showEnumValues);
if (numDocMembers()==0) return;
if (title)
{
ol.pushGeneratorState();
ol.disable(OutputGenerator::Html);
ol.writeRuler();
ol.popGeneratorState();
ol.startGroupHeader(showInline ? 2 : 0);
ol.parseText(title);
ol.endGroupHeader(showInline ? 2 : 0);
}
ol.startMemberDocList();
MemberListIterator mli(*this);
MemberDef *md;
for ( ; (md=mli.current()) ; ++mli)
{
md->writeDocumentation(this,ol,scopeName,container,
m_inGroup,showEnumValues,showInline);
}
if (memberGroupList)
{
//printf("MemberList::writeDocumentation() -- member groups\n");
MemberGroupListIterator mgli(*memberGroupList);
MemberGroup *mg;
for (;(mg=mgli.current());++mgli)
{
mg->writeDocumentation(ol,scopeName,container,showEnumValues,showInline);
}
}
ol.endMemberDocList();
}
示例15: writePathFragment
void Definition::writePathFragment(OutputList &ol) const
{
makeResident();
if (m_impl->outerScope && m_impl->outerScope!=Doxygen::globalScope)
{
m_impl->outerScope->writePathFragment(ol);
}
ol.writeString(" <li class=\"navelem\">");
if (isLinkable())
{
if (definitionType()==Definition::TypeGroup && ((const GroupDef*)this)->groupTitle())
{
ol.writeObjectLink(getReference(),getOutputFileBase(),0,((const GroupDef*)this)->groupTitle());
}
else if (definitionType()==Definition::TypePage && !((const PageDef*)this)->title().isEmpty())
{
ol.writeObjectLink(getReference(),getOutputFileBase(),0,((const PageDef*)this)->title());
}
else if (definitionType()==Definition::TypeClass)
{
QCString name = m_impl->localName;
if (name.right(2)=="-p" || name.right(2)=="-g")
{
name = name.left(name.length()-2);
}
ol.writeObjectLink(getReference(),getOutputFileBase(),0,name);
}
else
{
ol.writeObjectLink(getReference(),getOutputFileBase(),0,m_impl->localName);
}
}
else
{
ol.startBold();
ol.docify(m_impl->localName);
ol.endBold();
}
ol.writeString(" </li>\n");
}